package org.springblade.modules.admin.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 电梯停梯状态
 * @Author ysq
 * @Date 2021/10/23
 **/
@Getter
@AllArgsConstructor
public enum ElevatorStatusEnum {

	NORMAL(1,"正常"),

	STOP(2,"停梯");

	final int status;

	final String name;

	public static String getName(int status){
		ElevatorStatusEnum[] values = ElevatorStatusEnum.values();
		for (ElevatorStatusEnum enumValue:values) {
			if(enumValue.getStatus()==status){
				return enumValue.getName();
			}
		}
		return null;
	}
}
